/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.Information = function(config){
	
	Ext.apply(this,config,{	
			autoHeight: 'true'
		,	bodyStyle: "padding:20px"
		, border: false
		, items: [{
					xtype: "tbtext"
				,	style:'padding-bottom:25px;'
				,	html:'<div style="font-family:Arial,tahoma,Helvetica,sans-serif; font-size:12px "">' + this.txtDirectionsValue + '</div>'
			}, {
					xtype:'textfield'
				, fieldLabel:this.txtLayerName
				,	width: 250
				,	scope:this
				,	ref:'layerId'
				, enableKeyEvents: true 
				, listeners: {
						 keypress:{
									scope:this
								,	fn: function( textfield, e ) {
										if (e.getKey() == e.ENTER) {
												this.layertitleId.focus();
										}
									}
							}
					}
			}, {
					xtype:'textfield'
				, fieldLabel:this.txtLayerTitle
				,	width: 250
				,	scope:this
				,	ref:'layertitleId'
				, enableKeyEvents: true 
				, listeners: {
						keypress:{
								scope:this
							,	fn: function( textfield, e ) {
										if (e.getKey() == e.ENTER) {
												this.descId.focus();
										}
								}
						}
					}
			}, {
					xtype:'textarea'
				, fieldLabel:this.txtDescription
				,	width: 250
				,	scope:this
				,	ref:'descId'
				, enableKeyEvents: true 
				, listeners: {
						keypress:{
								scope:this
						 	,	fn: function( textfield, e ) {
									if (e.getKey() == e.ENTER) {
										this.fireEvent('docCompleted',this);
									}
								}
						}
					}
			}]
	});

	GBIF.GeoSpatial.Information.superclass.constructor.call(this, config);
}

Ext.extend(GBIF.GeoSpatial.Information,Ext.FormPanel, {		
})